package com.dragon.refect.error;

/**
 * 常量池演示案例
 *
 * @author dragon
 * @since 2019/11/30
 */
public class RuntimeConstantPoolTest {

    public static void main(String[] args) {
        String str1 = new StringBuilder("计算机").append("软件").toString();
        System.out.println(str1.intern() == str1);
    }
}
